<!DOCTYPE html>
<html>
<head>
<base href="<?php echo $this->Html->url('/',true)?>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>秦文票务管理后台</title>
<?php echo $this->Html->css(array('bootstrap/style','jquery-ui/jquery-ui-1.9.1.custom.min','jqgrid/jquery.jqgrid'));?>
<?php echo $this->Html->script(array(
					'jquery/jquery-1.8.2','jquery/jquery.wresize','root',
					'jquery-ui/jquery-ui-1.9.1.custom.min',
					'jqgrid/grid.locale-cn',
					'jqgrid/jquery.jqGrid.min',
					'jquery/jquery.cookie',
					'jquery/jquery-ui-timepicker-addon',
					'bootstrap/active',
					'jquery/json2',
					'bootstrap/main'
	));
?>
</head>
<body>
   	<?php //echo $this->element('admin/setting')?>
    <!--  HEAD -->
    <div id="head">
      <div class="left">
          <a href="#" class="button profile">
          	<?php echo $this->Html->image('bootstrap/huser.png')?>
          </a> 你好, 
          <?php 
          if($Auth){
          	echo $this->Html->link('【'.$Auth['UserGroup']['title'].'】'.$Auth['name'],array('plugin'=>false,'admin'=>true,'controller'=>'users','action'=>'password'));
          	echo ' | ';
          	echo $this->Html->link('首页',array('plugin'=>false,'admin'=>true,'controller'=>'Index','action'=>'index'));
          	echo ' | ';
          	echo $this->Html->link('退出',array('plugin'=>false,'controller'=>'users','action'=>'logout'));
          }
          ?> 
      </div>
      <div class="right" style = 'width:160px;' style = 'display:none;'>
        <span style = 'display: block;float: left;'>当前站点: </span>
      	<div class = 'placeholder' style = 'width:100px;float:left'>
         <?php echo $this->Form->input('SITEID',array('onchange'=>'GM.switchSite(this)','options'=>$SysWebsite,'value'=>$this->Session->read('SITEID'),'div'=>false,'label'=>false))?>
      	</div>
      </div>
    </div>
    <!--  SIDEBAR  -->
    <?php echo $this->element('admin/menu')?>
    <!-- CONTENT -->
    <div id="content" class="white">
      <?php 
      	echo $this->Session->flash(); 
		echo $this->session->flash('auth');
	  ?>
      <?php echo $this->fetch('content'); ?>
      <?php //echo $this->element('admin/shortcut')?>
      
      <div class="cb"></div>
      <?php if(false):?>
	  <!-- sqldump -->
      <div class="bloc">
        <div class="title"> SQL_DUMP </div>
        <div class="content">
      	<?php echo $this->element('sql_dump'); ?>
      	</div>
      </div>
      <?php endif;?>
      <?php echo $this->element('admin/copyright')?>
    </div>
</body>
</html>